/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jadvectiondiffusionsolver.solver;

import jadvectiondiffusionsolver.diagnostics.IDiagnostics;
import java.util.ArrayList;

/**
 *
 * @author Petter
 */
class Solver {

    protected ArrayList<IDiagnostics> _diagnostics = null;
    protected ISolutionSpace _solutionSpace;

    protected void appendDiagnostics(IDiagnostics pDiagnostics) {
        _diagnostics.add(pDiagnostics);
    }

    protected void performPreStepUpdate() {
        for (IDiagnostics d: _diagnostics) {
            d.postStepUpdate(_solutionSpace);
        }
    }

    protected void performPostStepUpdate() {
        for (IDiagnostics d: _diagnostics) {
            d.preStepUpdate(_solutionSpace);
        }
    }

    public void solve() {

    }

}
